var userInformation = ko.validatedObservable({
	FirstName : ko.observable('').extend({required: true, maxLength: 20}),
	LastName : ko.observable('').extend({required: true, maxLength: 20}),
	Age: ko.observable().extend({required: false, min: 10, max: 120}),
	onSave: function(){
		
			alert('submit');
	
	}
	
});
function SalesmanInformation(){
	var that = this;
	that.FirstName = ko.observable().extend({required: true, maxLength: 50});
	that.LastName = ko.observable().extend({required: true, maxLength: 50});
	that.Mobile = ko.observable().extend({required: false, maxLength: 20, minLength: 7});
	that.Age = ko.observable().extend({max: 120, min: 10});
	that.onSave = function () {
	    var value = "{salesman:'" + JSON.stringify(ko.mapping.toJSON(that)) +"'}";
		$.post('google.com',value).done(function(data){
			alert('done');
		});
	}
}